package com.i.template.constant;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @author lewis
 * @type enum
 * @description
 * @since 2024/7/25
 */
@Getter
@AllArgsConstructor
@ToString
public enum genderEnum {
    Other(0,"other"),
    MALE(1,"male"),
    FEMALE(2,"female");
    @EnumValue
//    @JsonValue
    private final Integer code;
    @JsonValue
    private final String message;
}
